package com;

import myrule.MyIEule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//@EnableEurekaClient

//@RibbonClient(name = "springcloud-devt",configuration = MyIEule.class)//自定义算法
//@RibbonClient(name = "SPRINGCLOUD-DEVT-8002")//自定义算法
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.controller"},defaultConfiguration = MyIEule.class)
@ComponentScan({"com.controller"})
public class Springbootdemo8081Application {
    public static void main(String[] args) {
        SpringApplication.run(Springbootdemo8081Application.class, args);
        System.out.println("消费者=======8081=======");
    }

}
